import 'package:flutter/material.dart';

class Settings extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => new SettingsState();
}
class SettingsState extends State<Settings> {
  @override
  Widget build(BuildContext context) {
    return new Container(
      padding: const EdgeInsets.all(8.0),
      child: new Column(
        children: [
          new Row(
            children: <Widget>[
              Expanded(
                child:SizedBox(),
              ),new IconButton(
                icon: new Icon(Icons.location_on),
              ),
            ],
          ),
          new Divider(color: Colors.grey[500]),
          new Expanded(
            //fill full colum
            child: new Row(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: <Widget>[
                new Expanded(
                  // fil full row
                  child: DataTable(columns: [
                    DataColumn(label: Text('当前')),
                    DataColumn(label: Text('城市名称')),
                    DataColumn(label: Text('时差')),
                  ], rows: [
                    DataRow(cells: [
                      DataCell(Text('11')),
                      DataCell(Text('111')),
                      DataCell(Text('1111')),
                    ]),
                    DataRow(cells: [
                      DataCell(Text('22')),
                      DataCell(Text('222')),
                      DataCell(Text('2222')),
                    ]),
                  ]),
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }
}